# 2.3：个性化消息
name = "Eric"
print(f"Hello {name}, would you like to learn some Python today?")
# 2.4：调整名字的大小写
# 全大写
print(name.upper())
# 全小写
print(name.lower())
# 首字母大写
print(name.title())
# 2.5：名言1
print('Albert Einstein once said, "A person who never made a mistake never tried anything new."')
# 2.6：名言2
famous_person = 'Albert Einstein'
message = f'{famous_person} once said, "A person who never made a mistake never tried anything new."'
print(message)
# 2.7删除人名中的空白
famous_person = '\nAlbert Einstein '
famous_person_2='\tAlbert Einstein '
print(famous_person)
print(famous_person_2)
print(famous_person.strip())
print(famous_person_2.strip())
# 2.8：文件扩展名
file_name = 'python_notes.txt'
print(file_name.removesuffix('.txt'))
